package javase_class_250902;

/**
 * ClassName: Student
 * Package: javase_class_250902
 * Description:
 *
 * @Author harkjeans
 * @Create 2025/9/2 20:09
 * @Version 1.0
 */
public class Student {

    String name;
    int age;
    String school;
    String major;

    public Student(String n, int a){
        name = n;
        age = a;
    }

    public Student(String n, int a, String s){
        name = n;
        age = a;
        school = s;
    }

    public Student(String n, int a, String s, String m){
        name = n;
        age = a;
        school = s;
        major = m;
    }

    public String getInfo(){
        return "name = " + name + ",age = " + age + ",school = " + school + ",major = " + major;
    }

}
